<div class="content margin_top">
    <header class="header fixed_top bg_mx_green"></header>
    <form class="vaccine"></form>
</div>
<div class="bg_white margin_b_10" style="height: 100%;margin-bottom: 0">
    <div class="padding_h_15 font_12 light" style="color:#000;padding-top: 22px;">
        <div class="h_justify border_b" style="margin-bottom: 15px">
            <div><b>疫苗类型</b></div>
            <div><b>计划疫苗</b></div>
            <div><b>实际疫苗</b></div>
        </div>

        <{foreach $vaccine as $key => $row}>
        <{if empty($row['pigid'])}>
            <a href="/business/person/vaccine-form?vacsetid=<{$row['id']}>&pigid=<{$pigid}>">
        <{else}>
            <a href="#">
         <{/if}>
            <div class="h_justify border_b" style="margin-bottom: 15px">
                <div><{$row['vaccinename']}></div>
                <div><{date('Y-m-d',$row['shoulddate'])}></div>
                <div>
                    <{if $row['recorddate']}>
                        <{date('Y-m-d',$row['recorddate'])}>
                    <{else}>
                        未防疫
                    <{/if}>
                </div>
            </div>
        </a>
        <{/foreach}>
    </div>
</div>
<script type="text/template" charset="utf-8" id='img_template'></script>
<script>
    // 页面初始化
    var evalinfo = doT.template($("#info_template").text());
    var evalToast = doT.template($("#toast_template").text());
    var date_now = new Date();
    var d = date_now.getFullYear() + '-' + f(date_now.getMonth() + 1) + '-' + f(date_now.getDate());
    loaddata(".vaccine", evalinfo, d);
    loadheadbar("添加疫苗情况", 1)
</script>


